import http from "@/http"

export default {

    area_select: {
        name: "区域查询",
        url: "/api/area",
        call: async function (params: any = {}) {
            return await http.get(this.url, params)
        }
    },

    select: {
        name: "仓库查询",
        url: "/api/warehouse",
        call: async function (params: any = {}) {
            return await http.get(this.url, params)
        }
    },
    insert: {
        name: "仓库新增",
        url: "/api/warehouse",
        call: async function (params: any = {}) {
            return await http.post(this.url, params)
        }
    },

    update: {
        name: "仓库修改",
        url: "/api/warehouse",
        call: async function (params: any = {}) {
            return await http.put(this.url, params)
        }
    },
    delete: {
        name: "仓库删除",
        url: "/api/warehouse",
        call: async function (params: any = {}) {
            return await http.delete(this.url, params)
        }
    }


}